﻿using System;
using System.Collections.Generic;
using NUnit.Framework;
using NUnit.Framework.SyntaxHelpers;
using Moq;
using System.Diagnostics;

namespace Opo.Perspective.Core
{
    [TestFixture]
    public class PerspectivePipelineTests
    {
        Mock<IPerspectivePipelinePlugin<string>> _plugin;

        [TestFixtureSetUp]
        public void Setup()
        {
            _plugin = new Mock<IPerspectivePipelinePlugin<string>>();
        }

        [TestFixtureTearDown]
        public void Teardown()
        {

        }

        [Test]
        public void CanAddPlugins()
        {
            IPerspectivePipeline<string> pipeline = new PerspectivePipeline<string>();
            pipeline.Plugins.Add(_plugin.Object);
            Assert.That(pipeline.Plugins.Count, Is.EqualTo(1));
        }
    }
}
